<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>6.css中的动画</title>
    <style>
      h1 {
        background-color: orange;
      }
      @keyframes dongqilai {
        0%{
          transform: translateX(0px);
        }
        100%{
          transform: translateX(-100%);
        }
      }
      .likai {
        animation: dongqilai 1s linear;
        animation-fill-mode: forwards;
      }
    </style>
  </head>
  <body>
    <h1>你好啊</h1>
  </body>
</html>